//
//  CommanTools.swift
//  WHSinaWeiBo
//
//  Created by 王寒 on 16/4/9.
//  Copyright © 2016年 wanghan. All rights reserved.
//

import UIKit

let client_id = "3845253887"
let redirect_uri = "http://devwhan.com"
let client_secret = "ae86a4ad09878214fce3605e8e8d454f"

let ScreenWidth = UIScreen.mainScreen().bounds.width
let ScreenHeight = UIScreen.mainScreen().bounds.height

let WHSwitchRootViewController = "WHSwitchRootViewController"


//全局同意错误提示
let AppErrorTip = "最遥远的地方就是没网"

//随机色
func randomColor() -> UIColor{
    let r = CGFloat(random() % 256) / 255.0
    let e = CGFloat(random() % 256) / 255.0
    let d = CGFloat(random() % 256) / 255.0
    return UIColor(red: r, green: e, blue: d, alpha: 1)
}